﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Quest
{
    class RedPotion: Weapon, IPotion
    {
        private const int maxHealth = 10;

        public RedPotion(Game game, Point point): base(game, point)
        {
        }

        public override Weapons Name { get { return Weapons.RedPotion; } }

        private bool used;
        public bool Used { get {return used;} }

        public override void Attack(Direction direction, Random random)
        {
            if (!used)
            {
                game.IncreasePlayerHealth(maxHealth, random);
                used = true;
            }
        }

    }
}
